﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="图书管理系统.aspx.cs" Inherits="mysqlTest.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 88px;
        }
        .auto-style2 {
            width: 178px;
        }
        .auto-style3 {
            width: 88px;
            height: 20px;
        }
        .auto-style4 {
            width: 178px;
            height: 20px;
        }
        .auto-style6 {
            width: 240px;
            height: 20px;
        }
        .auto-style7 {
            width: 316px;
        }
        .auto-style8 {
            width: 383px;
            height: 20px;
            margin-left: 80px;
        }
        .auto-style10 {
            margin-left: 0px;
        }
        .auto-style11 {
            width: 112px;
            height: 20px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table>
        <tr>
            <td class="auto-style3">
                条形码</td>
            <td class="auto-style4">
                <asp:TextBox ID="tb__code" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="auto-style1">
                图书名称</td>
            <td class="auto-style2">
                <asp:TextBox ID="tb_bookname" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="auto-style1">
                图书类型</td>
            <td class="auto-style2">
                <asp:DropDownList ID="drop_booktype" runat="server" Width="145px" DataSourceID="type" DataTextField="name" DataValueField="id">
                </asp:DropDownList>
                <asp:SqlDataSource ID="type" runat="server" ConnectionString="<%$ ConnectionStrings:db_librarymsConnectionString %>" ProviderName="<%$ ConnectionStrings:db_librarymsConnectionString.ProviderName %>" SelectCommand="select * from tb_booktype"></asp:SqlDataSource>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="auto-style1">
                作者</td>
            <td class="auto-style2">
                <asp:TextBox ID="tb_author" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="auto-style1">
                译者</td>
            <td class="auto-style2">
                <asp:TextBox ID="tb_trans" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="auto-style1">
                出版社</td>
            <td class="auto-style2">
                <asp:TextBox ID="tb_pub" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="auto-style1">
                价格</td>
            <td class="auto-style2">
                <asp:TextBox ID="tb_price" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="auto-style1">
                页码</td>
            <td class="auto-style2">
                <asp:TextBox ID="tb_page" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="auto-style1">
                书架</td>
            <td class="auto-style2">
                <asp:DropDownList ID="drop_case" runat="server" Width="145px" DataSourceID="case" DataTextField="name" DataValueField="name">
                </asp:DropDownList>
                <asp:SqlDataSource ID="case" runat="server" ConnectionString="<%$ ConnectionStrings:db_librarymsConnectionString %>" ProviderName="<%$ ConnectionStrings:db_librarymsConnectionString.ProviderName %>" SelectCommand="select * from tb_bookcase"></asp:SqlDataSource>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="auto-style1">
                库存数量</td>
            <td class="auto-style2">
                <asp:TextBox ID="tb_store" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="auto-style3">
                入馆时间</td>
            <td class="auto-style8">
                <asp:TextBox ID="tb_time" runat="server"></asp:TextBox>
                <asp:Label ID="Label1" runat="server" ForeColor="#3366FF" Text="    (格式为2000-03-06)"></asp:Label>
            </td>
        </tr>
    </table>
    <table class="auto-style7">
        <tr>
            <td class="auto-style11">
                操作员</td>
            <td class="auto-style6">
                <asp:TextBox ID="TextBox12" runat="server" CssClass="auto-style10"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="auto-style11">
            </td>
            <td class="auto-style6">
                <asp:Button ID="bt_add" runat="server" Text="添加" OnClick="bt_add_Click" />
&nbsp;
                <asp:Button ID="bt_modify" runat="server" Text="修改" OnClick="bt_modify_Click" />
&nbsp;
                <asp:Button ID="bt_cancel" runat="server" Text="取消" OnClick="bt_cancel_Click" />
            </td>
        </tr>
    </table>
    </div>
    </form>

</body>
</html>
